#include <QApplication>
#include <QLabel>
#include <QPushButton>
#include <QDebug>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QLabel *label = new QLabel("Hello, world!");
    label->show();

    QPushButton *button = new QPushButton("Quit");

    QObject::connect(button, &QPushButton::clicked, [](bool){
        qDebug() << "You clicked me!";
    });
    button->show();

    return a.exec();
}
